package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店商品分类管理 store_product_categories
 *
 * @author ruoyi
 * @date 2025-05-26
 */
public class StoreProductCategories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID，主键，自增唯一标识 */
    private Long id;

    /** 分类名称，例如“饮品”“主食”等，不允许为空 */
    @Excel(name = "分类名称，例如“饮品”“主食”等，不允许为空")
    private String categoryName;

    /** 分类ID，业务唯一标识码（如系统编码），不允许为空且唯一 */
    @Excel(name = "分类ID，业务唯一标识码", readConverterExp = "如=系统编码")
    private String categoryCode;

    /** 商品数，记录该分类下关联的商品数量，默认为0，由应用层动态更新 */
    @Excel(name = "商品数，记录该分类下关联的商品数量，默认为0，由应用层动态更新")
    private Long productCount;

    /** 状态，1表示启用，0表示禁用，默认为启用 */
    @Excel(name = "状态，1表示启用，0表示禁用，默认为启用")
    private Integer status;

    /** 排序，用于控制分类在界面上的显示顺序，数值越小显示越靠前，默认为0 */
    @Excel(name = "排序，用于控制分类在界面上的显示顺序，数值越小显示越靠前，默认为0")
    private Long displayOrder;

    /** 上级分类ID，关联自身表的id字段，用于构建分类层级，允许为空（表示一级分类） */
    @Excel(name = "上级分类ID，关联自身表的id字段，用于构建分类层级，允许为空", readConverterExp = "表=示一级分类")
    private Long parentCategoryId;

    /** 顺序，同一层级下的分类排序权重（与display_order配合使用，避免重复），默认为0 */
    @Excel(name = "顺序，同一层级下的分类排序权重", readConverterExp = "与=display_order配合使用，避免重复")
    private Long levelOrder;

    /** 点单时改价，0=未设置（默认禁止），1=允许，2=不允许 */
    @Excel(name = "点单时改价，0=未设置", readConverterExp = "默=认禁止")
    private Integer allowPriceEditDuringOrder;

    /** 整单折扣，0=未设置（默认禁止），1=允许，2=不允许 */
    @Excel(name = "整单折扣，0=未设置", readConverterExp = "默=认禁止")
    private Integer allowWholeOrderDiscount;

    /** 折扣方式，unset=未设置，no_discount=无折扣，member_level_discount=会员等级折扣，custom_member_discount=另设会员等级折扣 */
    @Excel(name = "折扣方式，unset=未设置，no_discount=无折扣，member_level_discount=会员等级折扣，custom_member_discount=另设会员等级折扣")
    private String discountType;

    /** 属于配赠商品，0=未设置（默认不属于），1=属于配赠，2=不属于配赠 */
    @Excel(name = "属于配赠商品，0=未设置", readConverterExp = "默=认不属于")
    private Integer isGiftCategory;

    /** 参与积分兑换，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与积分兑换，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInPointsExchange;

    /** 参与积分抵现，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与积分抵现，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInPointsDeduction;

    /** 参与手动优惠，0=未设置（默认不参与），1=参与，2=不参与 */
    @Excel(name = "参与手动优惠，0=未设置", readConverterExp = "默=认不参与")
    private Integer participateInManualDiscount;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setCategoryCode(String categoryCode)
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode()
    {
        return categoryCode;
    }

    public void setProductCount(Long productCount)
    {
        this.productCount = productCount;
    }

    public Long getProductCount()
    {
        return productCount;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setDisplayOrder(Long displayOrder)
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder()
    {
        return displayOrder;
    }

    public void setParentCategoryId(Long parentCategoryId)
    {
        this.parentCategoryId = parentCategoryId;
    }

    public Long getParentCategoryId()
    {
        return parentCategoryId;
    }

    public void setLevelOrder(Long levelOrder)
    {
        this.levelOrder = levelOrder;
    }

    public Long getLevelOrder()
    {
        return levelOrder;
    }

    public void setAllowPriceEditDuringOrder(Integer allowPriceEditDuringOrder)
    {
        this.allowPriceEditDuringOrder = allowPriceEditDuringOrder;
    }

    public Integer getAllowPriceEditDuringOrder()
    {
        return allowPriceEditDuringOrder;
    }

    public void setAllowWholeOrderDiscount(Integer allowWholeOrderDiscount)
    {
        this.allowWholeOrderDiscount = allowWholeOrderDiscount;
    }

    public Integer getAllowWholeOrderDiscount()
    {
        return allowWholeOrderDiscount;
    }

    public void setDiscountType(String discountType)
    {
        this.discountType = discountType;
    }

    public String getDiscountType()
    {
        return discountType;
    }

    public void setIsGiftCategory(Integer isGiftCategory)
    {
        this.isGiftCategory = isGiftCategory;
    }

    public Integer getIsGiftCategory()
    {
        return isGiftCategory;
    }

    public void setParticipateInPointsExchange(Integer participateInPointsExchange)
    {
        this.participateInPointsExchange = participateInPointsExchange;
    }

    public Integer getParticipateInPointsExchange()
    {
        return participateInPointsExchange;
    }

    public void setParticipateInPointsDeduction(Integer participateInPointsDeduction)
    {
        this.participateInPointsDeduction = participateInPointsDeduction;
    }

    public Integer getParticipateInPointsDeduction()
    {
        return participateInPointsDeduction;
    }

    public void setParticipateInManualDiscount(Integer participateInManualDiscount)
    {
        this.participateInManualDiscount = participateInManualDiscount;
    }

    public Integer getParticipateInManualDiscount()
    {
        return participateInManualDiscount;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("categoryCode", getCategoryCode())
                .append("productCount", getProductCount())
                .append("status", getStatus())
                .append("displayOrder", getDisplayOrder())
                .append("parentCategoryId", getParentCategoryId())
                .append("levelOrder", getLevelOrder())
                .append("allowPriceEditDuringOrder", getAllowPriceEditDuringOrder())
                .append("allowWholeOrderDiscount", getAllowWholeOrderDiscount())
                .append("discountType", getDiscountType())
                .append("isGiftCategory", getIsGiftCategory())
                .append("participateInPointsExchange", getParticipateInPointsExchange())
                .append("participateInPointsDeduction", getParticipateInPointsDeduction())
                .append("participateInManualDiscount", getParticipateInManualDiscount())
                .append("phone", getPhone())
                .toString();
    }
}
